package com.soushin.mvpdemo.module.bigimage;

import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import com.soushin.mvpdemo.R;

/**
 * 图片加载适配器
 * @author SouShin
 * @time 2018/11/14 15:15
 */
public class BigImageAdapter extends BaseQuickAdapter<String,BaseViewHolder> {

    public BigImageAdapter() {
        super(R.layout.item_photo_view);
    }

    @Override
    protected void convert(BaseViewHolder helper, String item) {
        Glide.with(mContext)
                .load(item)
                .into((ImageView) helper.getView(R.id.img_photo));
    }
}
